﻿<Page
    x:Class="JumpstartApp.Contracts.DetailPrinting"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:JumpstartApp.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid x:Name="printableArea">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>

            <StackPanel Orientation="Horizontal">
                <Image Source="ms-appx:///Assets/StoreLogo.png" Margin="4" 
                       HorizontalAlignment="Left" Stretch="None"/>
                <TextBlock Foreground="Black" VerticalAlignment="Center"
                           FontSize="35" Text="{Binding Title}"/>
            </StackPanel>

            <Image  Grid.Row="1" Margin="8"
                    Source="{Binding Image}"
                    HorizontalAlignment="Center"
                    Stretch="None"/>
            
            <TextBlock Foreground="Black" Grid.Row="2"
                       TextWrapping="Wrap" FontSize="20"
                       Text="{Binding Description}"/>
        </Grid>
    </Grid>
</Page>